﻿using System;
using System.Diagnostics;
using BC = BCrypt.Net.BCrypt;

var st = new Stopwatch();
st.Start();
var passwordHash = BC.HashPassword("12345678");
Console.WriteLine($"PasswordHash: {passwordHash}");

if (BC.Verify("12345678", passwordHash))
{
    st.Stop();
    Console.WriteLine($"hash check passed. {st.Elapsed}");
}
else
{
    Console.WriteLine("hash check failed.");
}

Console.ReadKey();

